package com.bs.visitservice.controller;

import com.bs.visitservice.entity.Org;
import com.bs.visitservice.service.OrgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
* @author idea
* @date 2020-01-30 22:05:49
**/
@RestController
public class OrgController {
    @Autowired
    private OrgService orgService;

    @RequestMapping("/getOrg")
    public void test(){
        List<Org> list = orgService.lambdaQuery().eq(Org::getOrgNo, "41101").list();
        list.forEach(System.out::println);
    }

}